class HoursEvent < Event  
  def calculate_raw_witness(witness)
    attendances = witness.raid_event.raid.attendances.find(:all, :conditions => {'character_id' => witness.character_id})
    raw_value = 0

    attendances.each do |attendance|
      raw_value = raw_value + (attendance.leavetime - attendance.jointime)/60/60
    end

    return raw_value
  end

end
